package com.service;

import com.mapper.ScoreMapper;
import com.pojo.Score;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author
 * @description score
 * @date 2022-12-19
 */
@Service
public class ScoreServiceImpl implements ScoreService {

    @Resource
    private ScoreMapper scoreMapper;


    @Override
    public Object insert(Score score) {
        return scoreMapper.insert(score);
    }

    @Override
    public Object delete(int id) {
        return scoreMapper.delete(id);
    }

    @Override
    public Object update(Score score) {
        return scoreMapper.update(score);
    }

    @Override
    public List<Score> pageList(int pageNum, int pageSize) {
        return scoreMapper.pageList(pageNum, pageSize);
    }

}